package com.gba.mark.group.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gba.mark.group.entity.Group;
import org.springframework.security.core.Authentication;

import java.util.List;

public interface IGroupService extends IService<Group> {
    Integer getGroupIdByAuthAndName(Authentication authentication, String groupName);
    boolean saveGroup(String language, String name, Integer size, Integer adminId);
    boolean removeGroup(String groupName, int adminId);
    List<Group> searchGroup(int adminId);
    List<Group> listGroup(String username);

}
